public class Homework10{

	public static void main(String[] args){

		// method m1 = new method();
		// System.out.println(method(method(10.0, 20.0), 100));
		Employee e1 = new Employee();
	}
}
class Employee{
	String name;
	int age;
	char gender;
	String position;
	double salary;
	//要求复用构造器
	public Employee(String name, char gender, int age){
		this.name = name;
		this.gender = gender;
		this.age = age;
	}
	publ Employee(String position, double salary){
		this.position = position;
		this.salary = salary;
	}
	public Employee(String name, cahr gender, int age, String position,
		double salary){
		this(name, gender, age)//使用前面的构造器
		this.position = position;
		this.salary = salary;
	}
	// public double method(double n1, double n2){
	// 	return n1 + n2;
	// }
}